package com.jeeplus.modules.web.entity;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.modules.sys.entity.User;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author liangbing
 * @version 1.0
 * @date 2021/3/11 15:54
 * @description 棋牌室房间
 */
public class YjMahjongHallRoom extends DataEntity<YjMahjongHallRoom> {
    private static final long serialVersionUID = 2L;

    private String no;

    @NotBlank(message="名称不能为空")
    private String name;

    /**
     * 棋牌室
     */
    @NotNull(message="所属棋牌室不能为空")
    private YjMahjongHall mahjongHall;

    private YjQrcodes qrcodes;

    /**
     * 创建者（业务员） open-id
     */
    private String openid;

    /**
     * 创建者（业务员）手机号
     */
    private String salesmanPhone;

    public YjMahjongHallRoom() {
    }

    public YjMahjongHallRoom(String name, String mahjongHallId) {
        this.setName(name);

        YjMahjongHall mahjongHall = new YjMahjongHall();
        mahjongHall.setId(mahjongHallId);
        this.setMahjongHall(mahjongHall);
    }


    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public YjMahjongHall getMahjongHall() {
        return mahjongHall;
    }

    public void setMahjongHall(YjMahjongHall mahjongHall) {
        this.mahjongHall = mahjongHall;
    }

    public YjQrcodes getQrcodes() {
        return qrcodes;
    }

    public void setQrcodes(YjQrcodes qrcodes) {
        this.qrcodes = qrcodes;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getSalesmanPhone() {
        return salesmanPhone;
    }

    public void setSalesmanPhone(String salesmanPhone) {
        this.salesmanPhone = salesmanPhone;
    }

    @Override
    public void preInsert() {
        super.preInsert();
    }

    @Override
    public void preUpdate() {
        super.preUpdate();
    }

    @Override
    public String getRemarks() {
        return super.getRemarks();
    }

    @Override
    public void setRemarks(String remarks) {
        super.setRemarks(remarks);
    }

    @Override
    public User getCreateBy() {
        return super.getCreateBy();
    }

    @Override
    public void setCreateBy(User createBy) {
        super.setCreateBy(createBy);
    }

    @Override
    public Date getCreateDate() {
        return super.getCreateDate();
    }

    @Override
    public void setCreateDate(Date createDate) {
        super.setCreateDate(createDate);
    }

    @Override
    public User getUpdateBy() {
        return super.getUpdateBy();
    }

    @Override
    public void setUpdateBy(User updateBy) {
        super.setUpdateBy(updateBy);
    }

    @Override
    public Date getUpdateDate() {
        return super.getUpdateDate();
    }

    @Override
    public void setUpdateDate(Date updateDate) {
        super.setUpdateDate(updateDate);
    }

    @Override
    public String getDelFlag() {
        return super.getDelFlag();
    }

    @Override
    public void setDelFlag(String delFlag) {
        super.setDelFlag(delFlag);
    }
}
